package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: dh
 * @date: 2023-11-07 21:33
 */
@Controller
public class BookController {

//    @RequestMapping("/commonParam")
//    @ResponseBody
//    public String commonParam(){
//
//        return "{'module':'commonParam'}";
//    }

    @RequestMapping("/commonParam")
    @ResponseBody
    public String commonParam(String name,int age){

        System.out.println("普通参数传递 name ==> "+name);
        System.out.println("普通参数传递 age ==> "+age);
        return "{'module':'commonParam'}";
    }
}
